
import java.util.*;

/***************************************************************
 * public calss CleanDupString
 *
 * public void putStringInToTable(String inputSr);
 * public Hashtable getStringHashTable();
 * public void printHashTable(Hashtable htb);
 ***************************************************************/

public class CleanDupString {

    private final Hashtable table = new Hashtable();

    public void putStringInToTable( String inputSr)
    {
	String emp = inputSr;
	table.put(emp, emp);
    }

    public void putStringInToTable( String key, String valume)
    {
	String emp1 = key;
	String emp2 = valume;
	table.put(emp1, emp2);
    }

    public Hashtable getStringHashTable ( ) {
	return table;
    }

    public Hashtable getHashTable ( ) {
	return table;
    }

    public void printHashTable (Hashtable htb) {
	Enumeration enum = htb.keys();  
	while (enum.hasMoreElements()) {
	    System.out.println(enum.nextElement());
	}
    }
}


